<?php
namespace app\my\validata;
use think\Validate;
/**
 *验证类 
 */
class MyValidata extends Validate
{
	  protected $rule =   [
        
        'Openid'   => 'max:50|alphaDash',
        'friendid'  =>'max:11|number',
        'status'   =>'max:1|number',
        'sex' =>'max:1|number',
        'birthday' =>'max:20',
        'mutualOpenid'=>'require|max:50|alphaDash',
        'passOpenid'=>'require|max:50|alphaDash'
        
      
    ];
    
 

      protected $scene = [
        'openid' => ['Openid'], // 时光相册
        'friendagree' =>['friendid','status'],
       'edit_user'=>['sex','birthday'],
       'attention_users'=>['mutualOpenid','passOpenid'],
    ];
}
?>